﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class User
    {
        private string UserName;
        private int userpassword;
        public string Name
        {
            get { return this.UserName; }
            set
            {
                if (value == "江泽民")
                {
                    Console.WriteLine("输入无效，-1s");
                }
                else
                {
                    this.UserName = value;
                }
            }
        }
        public int password
        {
            get { return this.userpassword; }
            set { this.userpassword = value; }
        }
    }
}
